<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('user/dels', $attributes);
?>

<table class="admindata">
   <thead>
      <tr>
         <th colspan="8"> <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>">
            <?=lang('total');?> <?=$num?>  <?=lang('record');?><span class="pages"> <?=$pagination?> </span> 
         </th>
      </tr>
      <tr>
         <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
         <th width="70">Avatar</th>
         <th>Full Name</th>
         <th>Nick Name</th>
         <th><?=lang('email');?></th>
         <th>Join Date</th>
         <th>Last Login</th>
         <th class="publish"><?=lang('functions');?></th>
      </tr>
   </thead>
   <?
        $k=1;
        $i=1;
        foreach($list as $rs):
        ?>
   <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->member_id?>"></td>
        <td>  
            <?php if(!empty($rs->lb_image)){?>
                <img src="<?=base_url_site()?>uploads/avatar/135/<?=$rs->lb_image?>" width ="35" height="35" alt="">
            <?php } ?>
        </td>
        <td><?php echo $rs->fullname.'<br>'.$rs->address;?></td>
        <td><?php echo $rs->username;?></td>
        <td><?php echo $rs->lb_email;?></td>
        <td><?php echo date_mysql2vn($rs->dt_create);?></td>
        <td><?php echo date_mysql2vn($rs->dt_login);?></td>
        <td align="center">
            <?=icon_edit('user/edit/'.$rs->member_id)?>
            <span id="publish<?=$rs->member_id?>">
            <?=icon_active("'member'","'member_id'",$rs->member_id,$rs->bl_active)?>
            </span>
            <?=icon_del('user/del/'.$rs->member_id.'/'.(int)$this->uri->segment(4))?>
        </td>
   </tr>
   <?
        $k=1-$k;
        $i++;
        endforeach;?>
   <tfoot>
   <td colspan="8"><input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>">
         <?=lang('total');?> <?=$num?>  <?=lang('record');?><span class="pages"> <?=$pagination?> </span> 
		 </td>
         </tfoot>
</table>
<?=form_close()?>
